package ecode

import (
	"github.com/zhufuyi/sponge/pkg/errcode"
)

// tkGeneralize http service level error code
// each resource name corresponds to a unique number (http type), the number range is 1~100, if there is the same number, trigger panic
var (
	tkGeneralizeNO       = 2
	tkGeneralizeName     = "tkGeneralize"
	tkGeneralizeBaseCode = errcode.HCode(tkGeneralizeNO)

	ErrCreateTkGeneralize      = errcode.NewError(tkGeneralizeBaseCode+1, "failed to create "+tkGeneralizeName)
	ErrDeleteByIDTkGeneralize  = errcode.NewError(tkGeneralizeBaseCode+2, "failed to delete "+tkGeneralizeName)
	ErrDeleteByIDsTkGeneralize = errcode.NewError(tkGeneralizeBaseCode+3, "failed to delete by batch ids "+tkGeneralizeName)
	ErrUpdateByIDTkGeneralize  = errcode.NewError(tkGeneralizeBaseCode+4, "failed to update "+tkGeneralizeName)
	ErrGetByIDTkGeneralize     = errcode.NewError(tkGeneralizeBaseCode+5, "failed to get "+tkGeneralizeName+" details")
	ErrListByIDsTkGeneralize   = errcode.NewError(tkGeneralizeBaseCode+6, "failed to list by batch ids "+tkGeneralizeName)
	ErrListTkGeneralize        = errcode.NewError(tkGeneralizeBaseCode+7, "failed to list of "+tkGeneralizeName)
	// error codes are globally unique, adding 1 to the previous error code
)
